<?php
namespace app\index\controller;

use think\Controller;

class Index extends Controller
{
    public function index()
    {
        //默认跳转到后台
        //$this->redirect('/admin');
        return \think\Response::create(\think\Url::build('/admin'), 'redirect');
        //return view();
    }

    public function hello(){
        $arr = [
            's' => ['show'=>'s','name' => '黑桃', 'weight' => 4, 'css' => '黑桃 ♠ '],
            'h' => ['show'=>'h','name' => '红心', 'weight' => 3, 'css' => '红桃 <span style="color:#f00;">♥</span> '],
            'c' => ['show'=>'c','name' => '梅花', 'weight' => 2, 'css' => '草花 ♣ '],
            'd' => ['show'=>'d','name' => '方块', 'weight' => 1, 'css' => '方块 <span style="color:#f00;">♦</span> ']
        ];
        echo "<pre>";
        print_r($arr);
    }
}
